package com.dstz.bpm.engine.parser.node;

import com.dstz.bpm.api.engine.plugin.def.BpmDef;
import com.dstz.bpm.api.model.def.NodeProperties;
import com.dstz.bpm.api.model.nodedef.impl.BaseBpmNodeDef;
import org.springframework.stereotype.Component;

@Component
public class NodePropertiesParse extends AbsNodeParse<NodeProperties> {
   @Override
   public String getKey() {
      return "propertie";
   }

   @Override
   public void setDefParam(BaseBpmNodeDef userNodeDef, Object object) {
      NodeProperties prop = (NodeProperties)object;
      userNodeDef.setNodeProperties(prop);
   }

}
